<!DOCTYPE html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <input type="number" id="input">
    <button id="press">press</button>
    <script>
        document.getElementById('press').addEventListener('tap', function () {
            console.log(document.getElementById('input').vlaue);
        })
    </script>
</body>
</html>